<template>
  <div id="app">
    <my-header />
    <router-view></router-view>
    <my-footer v-show="$route.meta.isShow"></my-footer>
  </div>
</template>

<script>
import MyHeader from "./components/Header";
import MyFooter from "./components/Footer";

export default {
  name: "App",
  components: {
    MyHeader,
    MyFooter,
  },
  //获取三级列表数据，只执行一次，提高性能
  mounted() {
    this.$store.dispatch("categoryList");
  },
};
</script>

<style>
</style>
